<?php

namespace com\aristo\ingenieros\view;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ReceiptView
 *
 * @author ARISTO INGENIEROS
 */
class OrdenView {

    private $id;
    private $nroorden;
    private $nrocomprobante;
    private $persona;
    private $empresa;
    private $fecha;

    function __construct() {
        $this->id = NULL;
        $this->nroorden = NULL;
        $this->nrocomprobante = NULL;
        $this->persona = NULL;
        $this->empresa = NULL;
        $this->fecha = NULL;
    }

    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getNroorden() {
        return $this->nroorden;
    }

    public function setNroorden($nroorden) {
        $this->nroorden = str_pad("" + $nroorden, 10, "0", STR_PAD_LEFT);
    }

    public function getNrocomprobante() {
        return $this->nrocomprobante;
    }

    public function setNrocomprobante($nrocomprobante) {
        $this->nrocomprobante = str_pad("" + $nrocomprobante, 10, "0", STR_PAD_LEFT);
    }

    public function getPersona() {
        return $this->persona;
    }

    public function setPersona($persona) {
        $this->persona = $persona;
    }

    public function getEmpresa() {
        return $this->empresa;
    }

    public function setEmpresa($empresa) {
        $this->empresa = $empresa;
    }

    public function getFecha() {
        return $this->fecha;
    }

    public function setFecha($fecha) {
        $this->fecha = $fecha;
    }

    public function toJSON() {
        return get_object_vars($this);
    }

}